package pl.milosnicy.miszcza.misiaela.mp3player.model;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Marcin.Wanke
 */
public class MP3Track {

	private String path;
	private String visibleName;
	private boolean isBeingPlayed;

	public MP3Track(String path, String visibleName) {
		this.path = path;
		this.visibleName = visibleName;
		isBeingPlayed = false;
	}

	public MP3Track(MP3Track track) {
		this.path = track.getPath();
		this.visibleName = track.getVisibleName();
		this.isBeingPlayed = track.getIsBeingPlayed();
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		if(path != null){
			this.path = path;
		}
	}

	public String getVisibleName() {
		return visibleName;
	}

	public void setVisibleName(String visibleName) {
		if(visibleName != null){
			this.visibleName = visibleName;
		}
	}

	@Override
	public String toString(){
		return visibleName;
	}

	public boolean getIsBeingPlayed() {
		return isBeingPlayed;
	}

	public void setIsBeingPlayed(boolean isBeingPlayed) {
		this.isBeingPlayed = isBeingPlayed;
	}

	
}
